package javabean;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Conn {
	public static Connection connect()throws ClassNotFoundException,SQLException{
		Class.forName("com.mysql.jdbc.Driver");
		String url="jdbc:mysql://localhost:3306/jsp";
		String username="root";
		String password="root";
		Connection conn=DriverManager.getConnection(url, username, password);
		return conn;
	}
}
